﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EDiamondModel;

public partial class Admin_DonHang : System.Web.UI.Page
{
    EDiamondEntities1 db = new EDiamondEntities1();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            //ChiTietDonHang();
        }
    }
    void ChiTietDonHang()
    {
        var query = db.DatHangCTs.Select(x => new { x.SanPhamID, x.SoLuong, x.DonGia, x.ThanhTien });
        GridChiTietDH.DataSource = query;
        GridChiTietDH.DataBind();
    }
}